package com.ruoyi.system.mapper.shopping;

import com.ruoyi.system.domain.shopping.Order;
import com.ruoyi.system.domain.shopping.OrderDtl;
import com.ruoyi.system.domain.shopping.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper {
    List<Order> selectOrderList(Integer userId);

    int insert(Order order);

    int insertDtl(OrderDtl orderDtl);

    List<OrderVo> selectOrderVoList(@Param("userId") Integer userId, @Param("username") String username);
}
